import ItemUtil from '@/ItemUtil';
import RandomUtil from '@/RandomUtil';
export default class Item_生锈的矮人族盾牌 {
    static id = 'C003';
    constructor() {
        EventManager.onTakeAttack(Item_生锈的矮人族盾牌.spellEffect);
    }
    static spellEffect(d: DamageEventData) {
        if (!ItemUtil.isUnitHasItem(d.target, Item_生锈的矮人族盾牌.id)) return;
        let r = RandomUtil.randomPercent();
        if (r > 0.18) return;
        d.lastDamage -= 99;
    }
}
